<template>
  <div class="start">
    <!-- <van-nav-bar title="标题" left-arrow @click-left="onClickLeft" /> -->
    <!-- <div style="height: 2.2rem;paddingTop:2rem; overflow: hidden">
      <dl style="padding-right: 1rem">
        <dd style="float: right; margin-left: 0.5rem">
          <img
            v-if="!headimgurl"
            style="border-radius: 50%; height: 2.2rem; width: 2.2rem"
            src="../assets/tu.jpg"
            alt=""
          />
          <img
            v-else
            style="border-radius: 50%; height: 2.2rem; width: 2.2rem"
            :src="headimgurl"
            alt=""
          />
        </dd>

        <dt
          v-if="!nickname"
          style="
            float: right;
            line-height: 1rem;
            margin-top: 0.7rem;
            font-size: 0.8rem;
            color: #fff;
          "
        >
          小兔
        </dt>
        <dt
          v-else
          style="
            float: right;
            line-height: 1rem;
            margin-top: 0.7rem;
            font-size: 0.8rem;
            color: #fff;
          "
        >
          {{ nickname }}
        </dt>
      </dl>
    </div> -->
    <div class="whitediv">
      <img src="../assets/thanks.png" alt="" />
      <p>奖品已发放完毕</p>
      <p>谢谢参与</p>
    </div>
  </div>
</template>
<script>
import { ref } from "vue";
export default {
  created() {
    if (localStorage.getItem("name") && localStorage.getItem("img")) {
      this.nickname = localStorage.getItem("name");
      this.headimgurl = localStorage.getItem("img");
    }
  },
  setup() {
    const nickname = ref();
    const headimgurl = ref();
    const onClickLeft = () => history.back();
    return {
      onClickLeft,
      nickname,
      headimgurl,
    };
  },
};
</script>
<style scoped>
.start {
  height: 100%;
  background: url("../assets/dise.png");
}
.whitediv {
  height: 77%;
  position: absolute;
  background-color: white;
  bottom: 0;
  width: 100%;
  border-radius: 15px 15px 0 0;
}
.whitediv img {
  width: 55%;
  height: 35%;
  margin-left: 22.5%;
  margin-top: 15%;
}
.whitediv p {
  font-size: 0.75rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.van-field__control {
  height: 1.4rem;
  border: 1px solid #ccc !important;
}
.subbtn {
  background: #1f62e6;
  color: white;
  width: 50%;
  height: 1.5rem;
  border-radius: 8px;
  margin-left: 25%;
  /* margin-bottom: 1rem; */
}
</style>